from selenium import webdriver
import time

# # TODO Firefox浏览器配置

# 准备options
from selenium.webdriver import FirefoxProfile

profile_directory = r'C:\Users\57836\AppData\Roaming\Mozilla\Firefox\Profiles\fpfjv5sh.default-release'
profile = FirefoxProfile(profile_directory)

# 打开浏览器(设置options),请求目标网址
driver = webdriver.Firefox(profile)
driver.get('https://baidu.com')

# 退出浏览器
time.sleep(3)
driver.quit()
